<table class="result_table">
    <tr>
        <td><b>Предмет</b></td>
        <td><b>Блок</b></td>
        <td><b>Назва тесту</b></td>
        <td><b>Дата</b></td>
        <td><b>К-ть балів</b></td>
        <td><b>Пятибальна система</b></td>
        <td><b>Залік/незалік</b></td>
        <td><b>ECTS система</b></td>
        <td><b>12 бальна система</b></td>
    </tr>
    <?php foreach($results as $result):?>
        <tr>
            <td><?php echo $result->getTest()->getTestBlock()->getSubject()?></td>
            <td><?php echo $result->getTest()->getTestBlock()->getName()?></td>
            <td><?php echo $result->getTest()?></td>
            <td><?php echo date('Y-m-d H:i',strtotime($result->getData()))?></td>
            <td><?php echo $result->getTotal()?></td>
            <?php $total_mark = $result->getTest()->getMark($result->getTotal())?>
            <td><?php echo $total_mark['5b']?></td>
            <td><?php echo $total_mark['zalik']?></td>
            <td><?php echo $total_mark['ects']?></td>
            <td><?php echo $total_mark['12b']?></td>
        </tr>
    <?php endforeach;?>
</table>